package com.tinywind.Sword.Service;

import java.util.List;

import com.tinywind.Sword.Entity.TodoEntity;
import com.tinywind.Sword.Entity.TodoFilter;

public interface TodoService {
	
	/*
	 * 通用的查询接口
	 */
	List<TodoEntity> search(TodoFilter filter);
	
	
//	public Integer insert(TodoEntity todo);
	
	//插入到TodoUser关系表
	public Integer insert(TodoEntity todo,int userId);
	
	//获取数据总数
	public int getTotalCount(TodoFilter filter);
	
	void update(TodoEntity todo);
	
	public void delete(long todoId,int userId);


}
